package com.training.regex;

import java.util.Arrays;

public class RegexDemo04 {
	public static void main(String[] args) {

		String str = "asdfasd564151sad52f145s2f41d53a2s1df3";
		
		String regex = "[^0-9]";
		
		String s = str.replaceAll(regex,"");
		
		System.out.println(s);
	}
}
